<?php
session_start();
require_once 'header.php';
function __autoload($className)
{
	require_once('class/' . $className . '.class.php');
}
$getNews=database::LimitQuery("news",array(
'order' => 'order by id desc',
'offset' => 0,
'size' => 20
));
if(!empty($getNews))
{
	require_once 'html/news.php';
}
else
{
	echo "no news";
}


?>